package com.yc.util;

import org.springframework.context.ApplicationContext;
/**
 * 项目名称：
 * 修改日期：2015/11/2
*/
public class Const {
	public static final String SESSION_SECURITY_CODE = "sessionSecCode";//验证码
	public static final String SESSION_USER = "sessionUser";			//session用的用户
	public static final String MINIAPP_SESSION_USER = "miniappSessionUser";			//miniapp前台登录用户
	public static final String SESSION_ROLE_RIGHTS = "sessionRoleRights";
	public static final String sSESSION_ROLE_RIGHTS = "sessionRoleRights";
	public static final String SESSION_menuList = "menuList";			//当前菜单
	public static final String SESSION_allmenuList = "allmenuList";		//全部菜单
	public static final String SESSION_QX = "QX";
	public static final String SESSION_userpds = "userpds";			
	public static final String SESSION_USERROL = "USERROL";				//用户对象
	public static final String SESSION_USERNAME = "USERNAME";			//用户名
	public static final String MINIAPP_SESSION_USERNAME = "MINIAPPUSERNAME";	//miniapp登录用户名
	public static final String MINIAPP_SESSION_USERID = "MINIAPPUSERID";	//miniapp登录用户ID
	public static final String TRUE = "T";
	public static final String FALSE = "F";
	public static final String LOGIN = "/login_toLogin.do";				//登录地址
	public static final String MINIAPP_LOGIN = "/app/appIndex";		//miniapp登录地址
	public static final String SYSNAME = "admin/config/SYSNAME.txt";	//系统名称路径
	public static final String PAGE	= "admin/config/PAGE.txt";			//分页条数配置路径
	public static final String PUBLISH	= "admin/config/PUBLISH.txt";			//分页条数配置路径
	public static final String EMAIL = "admin/config/EMAIL.txt";		//邮箱服务器配置路径
	public static final String SMS1 = "admin/config/SMS1.txt";			//短信账户配置路径1
	public static final String SMS2 = "admin/config/SMS2.txt";			//短信账户配置路径2
	public static final String FWATERM = "admin/config/FWATERM.txt";	//文字水印配置路径
	public static final String IWATERM = "admin/config/IWATERM.txt";	//图片水印配置路径
	public static final String WEIXIN	= "admin/config/WEIXIN.txt";	//微信配置路径
	public static final String WEBSOCKET = "admin/config/WEBSOCKET.txt";//WEBSOCKET配置路径
	public static final String FILEPATHIMG = "uploadFiles/uploadImgs/";	//图片上传路径
	public static final String FILEPATHFILE = "uploadFiles/file/";		//文件上传路径
	public static final String MINIAPP_USER_DEFAULT_ICON = "user_defaulticon.png";
	public static final String FILEPATHTWODIMENSIONCODE = "uploadFiles/twoDimensionCode/"; //二维码存放路径
	public static final String NO_INTERCEPTOR_PATH = ".*/((login)|(miniapp)|(uploadFiles)|(miniApp)|(logout)|(code)|(app)|(weixin)|(static)|(main)|(websocket)).*";	//不对匹配该值的访问路径拦截（正则）
	public static final String MINIAPP_NO_INTERCEPTOR_PATH = ".*/((dologin)|(checkuser)|(miniApp)|(uploadFiles)|(tologin)|(minilogout)).*";	//不对匹配该值的访问路径拦截（正则）
	
	//===================小程序上传图片压缩公用对象区域=================================
	public static final double MINIAPP_IMAGE_SIZE = 0.5;		//小程序上传图片的比例  0-1 0.5指把图片压缩成宽高只有原来0.5的比例大小
	public static final String MINIAPP_PC_PATH = "pc/";			//小程序图片pc端 在图片上传路径下根目录下的文件夹名称 如：uploadFiles/uploadImgs/pc
	public static final String MINIAPP_MOBILE_PATH = "mobile/";			//小程序图片mobile端 在图片上传路径下根目录下的文件夹名称 如：uploadFiles/uploadImgs/pc
	public static final String MINIAPP_MP_CODE_ICON = "mp_code_icon/";		//公众号二维码存放相对路径  如手机端 的公众号二维码 uploadFiles/uploadImgs/mobile/mp_code_icon
	public static final String MINIAPP_QR_CODE_ICON = "qr_code_icon/";		//小程序二维码存放相对路径
	public static final String MINIAPP_PROD_ICON = "prod_icon/";				//小程序图标存放相对路径
	public static final String MINIAPP_ALBUM_BIG = "pc/album/big/";					//小程序pc端专辑大图片保存路径
	public static final String MINIAPP_ALBUM_MIN = "pc/album/min/";					//小程序pc端专辑小图片保存路径
	public static final String MINIAPP_IMAGES = "images/";					//小程序截图存放相对路径 
	public static final String MINIAPP_USERPHOTO = "userphoto/";					//小程序用户头像存放相对路径  如uploadFiles/uploadImgs/userphoto/
	public static final int MINIAPP_PROD_ICON_WIDTH = 120;					//微信小程序图标最大宽度  正方形图片 宽高一样
	public static final int MINIAPP_CODE_ICON_WIDTH = 200;					//微信小程序二维码、公众号二维码最大宽度  正方形图片 宽高一样
	public static final int MINIAPP_IMAGES_WIDTH = 360;						//小程序截图app端默认最大宽度98
	public static final int MINIAPP_IMAGES_HEIGHT = 176;						//小程序截图app端默认最大高度度
	//===================小程序上传图片压缩公用对象区域=================================
	
	
	public static ApplicationContext WEB_APP_CONTEXT = null; //该值会在web容器启动时由WebAppContextListener初始化
	
	/**
	 * APP Constants
	 */
	//app注册接口_请求协议参数)
	public static final String[] APP_REGISTERED_PARAM_ARRAY = new String[]{"countries","uname","passwd","title","full_name","company_name","countries_code","area_code","telephone","mobile"};
	public static final String[] APP_REGISTERED_VALUE_ARRAY = new String[]{"国籍","邮箱帐号","密码","称谓","名称","公司名称","国家编号","区号","电话","手机号"};
	
	//app根据用户名获取会员信息接口_请求协议中的参数
	public static final String[] APP_GETAPPUSER_PARAM_ARRAY = new String[]{"USERNAME"};
	public static final String[] APP_GETAPPUSER_VALUE_ARRAY = new String[]{"用户名"};
	
	
}
